<!DOCTYPE html>
<html>
<head>
    <title>Title</title>

    <!--   Layui的js-->
    <script type="text/javascript"
            th:src="@{/libs/layui/layui.js}"
            charset="utf-8"></script>
    <!--Layui的css-->
    <link rel="stylesheet"
          th:href="@{/libs/layui/css/layui.css}"
          media="all">
</head>
<body>


<form class="layui-form" method="post" th:action="@{/register}">

    <div class="layui-form-item">
        <label class="layui-form-label">用户名：</label>
        <div class="layui-input-block">
            <input type="text" name="username" lay-verify="username" autocomplete="off" placeholder="请输入用户名" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">邮箱：</label>
        <div class="layui-input-block">
            <input type="text" id="email" name="email" lay-verify="email" autocomplete="off" placeholder="请输入邮箱" class="layui-input">

            <button type="button" id="getcode" class="layui-btn layui-btn-warm" >获取验证码</button>

        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">验证码：</label>
        <div class="layui-input-block">
            <input type="text" name="identify" lay-verify="identify" autocomplete="off" placeholder="请输入密码" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">密码：</label>
        <div class="layui-input-block">
            <input type="password" name="password" lay-verify="password" autocomplete="off" placeholder="请输入密码" class="layui-input">
        </div>
    </div>








    <div class="layui-form-item">
        <label class="layui-form-label">确认密码：</label>
        <div class="layui-input-block">
            <input type="password" name="confimpassword" lay-verify="confimpassword" autocomplete="off" placeholder="请确认密码" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">身份：</label>
        <div class="layui-input-block">
            <select name="judge">
                <option value="">请选择</option>
                <option value="1">老师端</option>
                <option value="2">学生端</option>

            </select>
        </div>
    </div>


    <div class="layui-form-item">
        <div class="layui-input-block">
            <button type="submit" class="layui-btn" lay-submit="" lay-filter="demo1">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
<!--jquery的js-->
<script type="text/javascript"
        th:src="@{/libs/jquery/jquery-3.5.1.js}"></script>
<!--引入自己的JS代码-->
<script type="text/javascript"
        th:src="@{/js/reg.js}"></script>



</body>
</html>
